package tacos;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller            // <1>
public class HomeController {

    @GetMapping("/")     // <2>
    public String home(String name, String code, Model model) {
        System.out.println("name=" + name);
        System.out.println("code=" + code);
//        model.addAttribute("name",name);
        return "home";     // <3>
    }

}
